package com.example.demo.model;

import lombok.Data;

@Data
public class UserInfo {
    private Integer id;
    private String userName;

    public UserInfo() {
    }

    public UserInfo(Integer id, String userName) {
        this.id = id;
        this.userName = userName;
    }

    public void getUserInfo(){
        System.out.println(this);
    }
}
